package com.cimpm.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.annotation.entity.AllowNull;
import com.hby.common.annotation.entity.VerifyRepetitionField;

import java.util.Date;

@TableName("project_project_detail")
public class ProjectDetail {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	private String manager;

	@AllowNull
	private String planBeginDate;

	@AllowNull
	private String planEndDate;

	@AllowNull
	private String scale;

	@AllowNull
	private String buildUnit;

	@AllowNull
	private String latitude;

	@AllowNull
	private String longitude;

	@AllowNull
	private String period;

	@AllowNull
	@VerifyRepetitionField
	private String enName;

	@AllowNull
	@VerifyRepetitionField
	private String abbName;

    @TableLogic
    private Date isDeleted;

    @Version
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public String getManager() { return manager; }

    public void setManager(String manager) { this.manager = manager; }

    public String getPlanBeginDate() { return planBeginDate; }

    public void setPlanBeginDate(String planBeginDate) { this.planBeginDate = planBeginDate; }

    public String getPlanEndDate() { return planEndDate; }

    public void setPlanEndDate(String planEndDate) { this.planEndDate = planEndDate; }

    public String getScale() { return scale; }

    public void setScale(String scale) { this.scale = scale; }

    public String getBuildUnit() { return buildUnit; }

    public void setBuildUnit(String buildUnit) { this.buildUnit = buildUnit; }

    public String getLatitude() { return latitude; }

    public void setLatitude(String latitude) { this.latitude = latitude; }

    public String getLongitude() { return longitude; }

    public void setLongitude(String longitude) { this.longitude = longitude; }

    public String getPeriod() { return period; }

    public void setPeriod(String period) { this.period = period; }

    public String getEnName() { return enName; }

    public void setEnName(String enName) { this.enName = enName; }

    public String getAbbName() { return abbName; }

    public void setAbbName(String abbName) { this.abbName = abbName; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "projectDetail{" +
            "id=" + id +
            ", manager=" + manager +
            ", planBeginDate=" + planBeginDate +
            ", planEndDate=" + planEndDate +
            ", scale=" + scale +
            ", buildUnit=" + buildUnit +
            ", latitude=" + latitude +
            ", longitude=" + longitude +
            ", period=" + period +
            ", enName=" + enName +
            ", abbName=" + abbName +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
